<template>
	<div class="mall_goods_comment">
		<MallGoodsCommentList :id="id" :cid="cid" :commentlistData="commentlistData" :count="count" :commentPageNum="commentPageNum" :commentPageTotal="commentPageTotal" />
	</div>
</template>
<script>
	import MallGoodsCommentList from "../../components/mall/mall-goods-comment-list.vue";
	export default{
		name: "MallGoodsComment",
		props:["id", "cid"],
		data: function(){
			return{
				commentlistData:[],
				count:0,
				commentPageNum: 1,
				commentPageTotal: 3
			}
		},
		components:{
			MallGoodsCommentList
		},
		created: function(){
			let data = [{
				content: "不买理财产品就是赚钱，买股票还有理财产品雾里看花，猫腻太多。",
				id: 2081747,
				ispraise: 0,
				logo: "http://logo0.tool.hexun.com/1eccad9-40.jpg",
				parentid: 0,
				parentuserid: 0,
				parentusername: "",
				postip: "183.208.*.*",
				poststr: "错误的IP数据库文件 错误的IP数据库文件",
				posttime: 1546447511000,
				praisecount: 0,
				userid: 31050476,
				username: "wxgnf5ju6m"
			},{
				content: "不买理财产品就是赚钱，买股票还有理财产品雾里看花，猫腻太多。",
				id: 2081747,
				ispraise: 0,
				logo: "http://logo0.tool.hexun.com/1eccad9-40.jpg",
				parentid: 0,
				parentuserid: 0,
				parentusername: "",
				postip: "183.208.*.*",
				poststr: "错误的IP数据库文件 错误的IP数据库文件",
				posttime: 1546447511000,
				praisecount: 0,
				userid: 31050476,
				username: "wxgnf5ju6m"
			}];
			this.$set(this, "count", data.length);
			this.$set(this, "commentlistData", data);
		}
	}
</script>
<style lang="less">
	@base:23.44/1rem;
	.mall_goods_comment{
		background-color: #fff;
		margin:10/@base 0 0;
	}
</style>